Added GdkRGBA properties to GtkTextTag.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 9 Feb 2011 14:41:39 +0000 (23:41 +0900)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 6 May 2011 21:05:10 +0000 (17:05 -0400)
commitd399a4acabf9904118ea4481d057bde39bf0ab0e
treef5e0a553cbf7f0e73f64de6d6439ba5bb6548d50
parent297e7393953264b4c7c67562146a7b89dbaf43b2
Added GdkRGBA properties to GtkTextTag.

This now allows text view to render text with alpha values in
the text foreground and backgrounds, the work is almost complete,
currently the error-underline-color is still a GdkColor style property
and since we use only GdkRGBA for rendering it needs to be converted
and applied, probably a new rgba version of the style property should
also be introduced.

This commit adds tests/testtextview that must be run from the tests/
directory to show translucent text in action.
gtk/gtktextattributes.c
gtk/gtktextattributes.h
gtk/gtktextdisplay.c
gtk/gtktextlayout.c
gtk/gtktextlayout.h
gtk/gtktexttag.c
tests/Makefile.am
tests/testtextview.c [new file with mode: 0644]